import React, {Component} from 'react';
import {View, Text, StyleSheet} from 'react-native';
import {Actions} from 'react-native-router-flux';


const PageTwo = () => {
    return (
        <View style={styles.container}>
            <Text
                style={styles.welcome}

                onPress={() => Actions.PageOneKey()} // New Code
                //onPress={Actions.PageOne}  //另一种写法
            >
                PageTwo Screen
            </Text>
        </View>
    );
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
        backgroundColor: '#121234',
    },
    welcome: {
        fontSize: 20,
        textAlign: 'center',
        margin: 10,
        color: '#ffffff',
    },
});

export default PageTwo;